package com.hxrfid.project.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.hxrfid.common.annotation.ExcelDictFormat;
import com.hxrfid.common.convert.ExcelDictConvert;
import com.hxrfid.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;



/**
 * 商品管理视图对象 bs_product
 *
 * @author hxrfid
 * @date 2025-06-12
 */
@Data
@ExcelIgnoreUnannotated
public class BsProductVo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 商品类别（1商品，2非遗）
     */
    @ExcelProperty(value = "商品类别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=商品，2非遗")
    private String productType;

    /**
     * 商品标题
     */
    @ExcelProperty(value = "商品标题")
    private String title;

    /**
     * 商品主图
     */
    @ExcelProperty(value = "商品主图")
    private String mainImage;

    /**
     * 商品轮播图
     */
    @ExcelProperty(value = "商品轮播图")
    private String cyclePath;

    /**
     * 价格
     */
    @ExcelProperty(value = "价格")
    private BigDecimal price;

    /**
     * 下划价
     */
    @ExcelProperty(value = "下划价")
    private BigDecimal underlinePrice;

    /**
     * 单位
     */
    @ExcelProperty(value = "单位")
    private String unit;

    /**
     * 服务
     */
    @ExcelProperty(value = "服务")
    private String service;

    /**
     * 库存
     */
    @ExcelProperty(value = "库存")
    private Long inventory;

    /**
     * 销量
     */
    @ExcelProperty(value = "销量")
    private Long saleNum;

    /**
     * 商品详情
     */
    @ExcelProperty(value = "商品详情")
    private String productDesc;

    /**
     * 商品溯源
     */
    @ExcelProperty(value = "商品溯源")
    private String source;

    /**
     * 商品授权
     */
    @ExcelProperty(value = "商品授权")
    private String credential;

    /**
     * 品牌id
     */
    @ExcelProperty(value = "品牌id")
    private Long brandId;

    /**
     * 品牌
     */
    @ExcelProperty(value = "品牌")
    private String brand;

    /**
     * 区域id
     */
    @ExcelProperty(value = "区域id")
    private Long areaId;

    /**
     * 区域
     */
    @ExcelProperty(value = "区域")
    private String area;

    /**
     * 详细区域
     */
    @ExcelProperty(value = "详细区域")
    private String areaAddr;

    /**
     * 是否限时特价（1是0否）
     */
    @ExcelProperty(value = "是否限时特价", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=是0否")
    private String isSpecial;

    /**
     * 是否新品推荐（1是0否）
     */
    @ExcelProperty(value = "是否新品推荐", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=是0否")
    private String isNew;

    /**
     * 是否爆品推荐（1是0否）
     */
    @ExcelProperty(value = "是否爆品推荐", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=是0否")
    private String isHot;

    /**
     * 是否可用积分（1是0否）
     */
    @ExcelProperty(value = "是否可用积分", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=是0否")
    private String isScore;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
